package com.qf.cloud2204.coupons.service;

import com.qf.cloud2204.coupons.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zxz
 * @since 2023-05-19
 */
public interface ICouponService extends IService<Coupon> {


    String createCoupons(BigDecimal amount, Integer count);

    boolean putCoupons(String batchId);

    //抢卷实现
    boolean grab(String batchId,String number);
}
